package com.heny.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;


@Data
@TableName("data_statistics_model")
public class DataStatisticsModel {


    @TableId(type = IdType.AUTO)
    /**
    * id
    */
    private Long id;

    /**
    * created_at
    */
    private Date createdAt;

    /**
    * updated_at
    */
    private Date updatedAt;

    /**
    * created_by
    */
    private String createdBy;

    /**
    * updated_by
    */
    private String updatedBy;

    /**
    * statistics_type
     * @see com.heny.demo.model.enu.StatisticsTypeEnum
    */
    private String statisticsType;

    /**
    * statistics_period
     * @see com.heny.demo.model.enu.StatisticsPeriodEnum
    */
    private String statisticsPeriod;

    /**
    * custom_statistics_time
    */
    private String customStatisticsTime;

    /**
    * data_mapping_config
     * @see com.heny.demo.model.DataConvertModel
    */
    private String dataMappingConfig;

    /**
    * data_type
     * @see com.heny.demo.model.enu.DataTypeEnum
    */
    private String dataType;

    /**
    * device_type_id
    */
    private String deviceTypeId;

    /**
    * data_source
     * ( 枚举值：BASIC_DATA 、 STATISTIC_DATA) 如果年和月都拿历史实时点位数据，数据量太大，暂时先不支持，同意时数据取点位数据，日取时，月取日，以此类推
    */
    private String dataSource;

    /**
    * ext_info
    */
    private String extInfo;

    public DataStatisticsModel() {}
}